package net.zhuike.novel.app.bean;

import net.zhuike.novel.app.bean.base.Base;

import java.io.Serializable;
import java.util.List;
import java.util.Random;

/**
 * Created by wq on 2017/7/28.
 */
public class BookFonts extends Base {
    public static final int STATUS_LOADING = 1;
    public static final int STATUS_WAIT = 2;
    public static final int STATUS_PAUSE = 3;
    public static final int STATUS_ERROR = 4;
    public static final int STATUS_FINISH = 5;
    private volatile int status = STATUS_PAUSE;
    public int priority;
    public int getStatus() {
        return status;
    }

    public List<BookFonts> fonts;
    public String id;
    public String name;
    public String url;
    public String downloadSize;

    public String getDownloadSize() {
        return downloadSize;
    }

    public void setDownloadSize(String downloadSize) {
        this.downloadSize = downloadSize;
    }

    public int max;
    public int progress;
    public BookFonts(){
        Random random = new Random();
        priority = random.nextInt(100);
    }
    public int getProgress() {
        return progress;
    }

    public void setProgress(int progress) {
        this.progress = progress;
    }

    public int getMax() {
        return max;
    }

    public void setMax(int max) {
        this.max = max;
    }

    public List<BookFonts> getFonts() {
        return fonts;
    }

    public void setFonts(List<BookFonts> fonts) {
        this.fonts = fonts;
    }

    public String getId() {
        return id;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
